package com.pattern.flyweight;

public class LargeRobot implements Robot {
    /*
    * Intrinsic state.
    * It is not supplied by client.
    * So, it is independent of the flyweight’s context.
    * This can be shared across.
    Chapter 10 Flyweight pattern153
    * These data are often immutable.
    */
    private final String robotTypeCreated;

    public LargeRobot() {
        robotTypeCreated = "A large robot created";
        System.out.print(robotTypeCreated);
    }

    @Override
    public void showMe(String color) {
        System.out.print(" with " + color + " color");
    }

}
